package cn.ibizlab.odoo.core.odoo_hr.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_hr.domain.Hr_expense_sheet;
import cn.ibizlab.odoo.core.odoo_hr.filter.Hr_expense_sheetSearchContext;

/**
 * 实体[Hr_expense_sheet] 服务对象接口
 */

public interface IHr_expense_sheetService{
     boolean update(Hr_expense_sheet hr_expense_sheet) ;
     Hr_expense_sheet get(Integer id) ;
     Hr_expense_sheet get(Hr_expense_sheet hr_expense_sheet) ;
     void createBatch(List<Hr_expense_sheet> hr_expense_sheets, int batchSize) ;
     void updateBatch(List<Hr_expense_sheet> hr_expense_sheets, int batchSize) ;
     boolean create(Hr_expense_sheet hr_expense_sheet) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Hr_expense_sheet> searchDefault(Hr_expense_sheetSearchContext context) ;

    /**
     * 根据日记账查询
     */
     Page<Hr_expense_sheet> selectByOdoo_bank_journal(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Hr_expense_sheet> selectByOdoo_journal(Integer id) ;

    /**
     * 根据凭证录入查询
     */
     Page<Hr_expense_sheet> selectByOdoo_account_move(Integer id) ;

    /**
     * 根据HR 部门查询
     */
     Page<Hr_expense_sheet> selectByOdoo_department(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_expense_sheet> selectByOdoo_employee(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Hr_expense_sheet> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Hr_expense_sheet> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Hr_expense_sheet> selectByOdoo_address(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_expense_sheet> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_expense_sheet> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_expense_sheet> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Hr_expense_sheet convert2Domain(cn.ibizlab.odoo.core.client.model.Ihr_expense_sheet model ,Hr_expense_sheet domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ihr_expense_sheet convert2Model(Hr_expense_sheet domain , cn.ibizlab.odoo.core.client.model.Ihr_expense_sheet model);

}
